package com.yohann.designPattern.adapter.classAdapter;

/**
 * <p>
 * 手机
 * </p>
 *
 * @author Yohann
 * @since 2021/2/2 20:43
 */
public class Phone {
    public void charge(Voltage5V voltage5V) {
        if (voltage5V.output5V() == 5) {
            System.out.println("电压正常");
        }
    }
}